package com.siyue.test1.controller;

import com.siyue.test1.service.YjEmergencyEventsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 应急事件 前端控制器
 * </p>
 *
 * @author 小沐沐吖
 * @since 2023-09-12
 */
@RestController
@RequestMapping("/yjEmergencyEvents")
public class YjEmergencyEventsController {

    @Autowired
    private YjEmergencyEventsService emergencyEventsService;

    @RequestMapping("/test1")
    public String test1(){
        System.out.println(emergencyEventsService.list());
        return "ok";
    }

}
